//package com.zz.study.sharding.controller;
//
//import com.zz.study.sharding.entity.Activity;
//import com.zz.study.sharding.mappers.ActivityMapper;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.Resource;
//
///**
// * @author zz
// * @version 1.0.0 2022-07-17
// */
//@RestController
//public class ActivityController {
//
//    @Resource
//    private ActivityMapper activityMapper;
//
//    @GetMapping("addActivity")
//    public String addCustomer(@RequestParam("activityName") String activityName) {
//        int result = activityMapper.addActivity(activityName);
//        return "添加结果: " + result;
//    }
//
//    @GetMapping("findActivity")
//    public Activity findCustomer(@RequestParam("id") Long id) {
//        return activityMapper.findActivity(id);
//    }
//
//}
